package com.czkj.hwz.decorate;

import android.app.Application;

import com.blankj.utilcode.util.Utils;
import com.czkj.hwz.decorate.bean.Enterprise;
import com.czkj.hwz.decorate.bean.WorkerType;

import org.xutils.BuildConfig;
import org.xutils.x;

import java.util.ArrayList;
import java.util.List;

import cn.finalteam.okhttpfinal.OkHttpFinal;
import cn.finalteam.okhttpfinal.OkHttpFinalConfiguration;

/**
 * Created by Administrator on 2017/9/29.
 */

public class MyApp extends Application {
    public MyApp() {
        super();
    }
    private List<Enterprise> mEnterpriseList=new ArrayList<>();
    private List<WorkerType> workerTypeLists=new ArrayList<>();
    @Override
    public void onCreate() {
        super.onCreate();
        OkHttpFinalConfiguration.Builder builder = new OkHttpFinalConfiguration.Builder();
        OkHttpFinal.getInstance().init(builder.build());
        //对xUtils进行初始化
        x.Ext.init(this);
        //是否是开发、调试模式
        x.Ext.setDebug(BuildConfig.DEBUG);//是否输出debug日志，开启debug会影响性能
        Utils.init(this);
    }

    public List<Enterprise> getmEnterpriseList() {
        return mEnterpriseList;
    }

    public void setmEnterpriseList(List<Enterprise> mEnterpriseList) {
        this.mEnterpriseList = mEnterpriseList;
    }

    public List<WorkerType> getWorkerTypeLists() {
        return workerTypeLists;
    }

    public void setWorkerTypeLists(List<WorkerType> workerTypeLists) {
        this.workerTypeLists = workerTypeLists;
    }
}
